<div class="main_content">
	<table width="98%" name="tab_main" id="tab_main" class="tab_main" border="0" cellpadding="0" cellspacing="1" align="left">
	<thead>
		<tr>
						<th>序号</th>
						<th>库请单号</th>
						<th>经办人 </th>
						<th>经办日期</th>
						<th width="15%">操作</th>
		</tr>
	</thead>
	<tbody>
	{%foreach from=$arr item=arr_item%}
		<tr class="list_{%$arr_item.send_record_id%}">
						<td>
				{% if $arr_item.list %}
					<div id="sign_{%$arr_item.send_record_id%}" class="sign_pm pcursor sign_plus" onclick="showList(this,'{%$arr_item.high_replacement_id%}')"></div>
				{% else %}
					<div class="sign_pm sign_minus"></div>
				{% /if %}
				</td>
						<td>{%$arr_item.storehouse_no%}</td>
						<td>{%$admin_info[$arr_item.operation_people]%}</td>
						<td>{%$arr_item.operation_date|date_format:"%Y-%m-%d"%}</td>
						<td>
				<a href='index.php?c=zy_send_storehouse_record&m=browse&send_record_id={%$arr_item.send_record_id%}'>查看</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_send_storehouse_record&m=edit&send_record_id={%$arr_item.send_record_id%}'>修改</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_send_storehouse_record&m=del&send_record_id={%$arr_item.send_record_id%}'>删除</a>
				<br><a href='index.php?c=zy_send_storehouse_details&m=add&send_record_id={%$arr_item.send_record_id%}'>添加物资</a>
			</td>
		</tr>
		<tr class="hide_chunk">
			<td colspan="6">
				<div class="arrow_open"></div>
				
				<div class="load_list">
					<table width="96%" name="tab_sub" id="tab_sub" class="tab_sub" border="0" cellpadding="0" cellspacing="1" align="left">
					<thead>
						<tr>
							<th width="5%">序号</th>
							<th>物资编码</th>
							<th>部件号</th>
							<th>物资名称</th>
							<th>规格型号</th>
							<th>数量</th>
							<th>单位</th>
							<th>订单/合同号</th>
							<th>项目</th>
						</tr>
					</thead>
					<tbody>	

					{%if $arr_item.list %}
					{% foreach from=$arr_item.list item=list key=key %}
					<tr>
					<td>{%$key+1%}</td>
					<td>{%$list.materials_no%}</td>
					<td>{% $list.part_number %}</td>
					<td>{% $list.materials_name %}</td>
					<td>{% $list.format_model %}</td>
					<td>{% $list.send_num %}</td>
					<td>{% $list.s_unit %}</td>
					<td>{% $list.order_no %}</td>
					<td>{% $project_arr[$list.project_id] %}</td>
					</tr>
					{% /foreach %}

					{%/if%}					</tbody>					
					<tfoot>
						<tr>
							<td colspan="11"><div id="pager"></div></td>
						</tr>
					</tfoot>					
					</table>
				</div>
			</td>
		</tr>
	{%/foreach%}
	</tbody>
	{%if $arr_item %}
	<tfoot>
		<tr>
			<td colspan="6"><div id="pager">{%$page_footer%}</div></td>
		</tr>
	</tfoot>
	{%/if%}
	</table>
	
	<div class="btn_list">
		<span class="btn_add" onclick="location.href='?c=zy_send_storehouse_record&m=add'">添 加</span>
	</div>
</div>